#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include <thread>
#include <list>
#include "shared_ptr.h"

using namespace std;

void func(MySharedPtr::shared_ptr<list<int>> sp, int n) {

	for (int i = 0; i < n; i++) {
		sp->emplace_back(i);
	}

}

int main() {
	MySharedPtr::shared_ptr<list<int>> sp1(new list<int>);
	MySharedPtr::shared_ptr<list<int>> sp2(sp1);
	MySharedPtr::shared_ptr<list<int>> sp3(sp1);
	MySharedPtr::shared_ptr<list<int>> sp4(sp1);
	MySharedPtr::shared_ptr<list<int>> sp5(sp1);

	MySharedPtr::shared_ptr<list<int>> sp7(new list<int>);
	sp5 = sp7;
	return 0;
}
